import http from './http'
//  登录
export const LoginApi = (params) => http.post('/login', params)
// 全部订单
export const allordersApi = (params) => http.get('/order/v1/list', {
  params
})

// 待发货
export const allorders1Api = (params) => http.get('/order/v1/list/1', {
  params
})
//发货 post请求
export const shipmentsApi = (params) => http.post('/order/v1/send', params)

//待收货
export const allorders2Api = (params) => http.get('/order/v1/list/2', {
  params
})
//待评价
export const allorders3Api = (params) => http.get('/order/v1/list/3', {
  params
})
//订单详情
export const allorders5Api = (params) => http.get('/order/v1/evaluateInfo/{serialNo}', {
  params
})
//确认收货
export const LoginApi4 = (params) => http.post('/order/v1/confirmReceipt/{serialNo}', params)


// 个人信息

export const PersonalApi = () => http.get('/users/info')

// 用户信息展示中心
// https: //www.ahsj.link/nebula-api/users/list
export const UserinterfaceApi = () => http.get('/users/list')

//个人中心版本信息
// https://www.ahsj.link/nebula-api/users/
export const VersionApi = () => http.get('/users/version')